package com.ruoyi.gzmx_scdw.domain;


import com.ruoyi.youtian.domain.TSceneCategory;

import java.io.Serializable;

/**
 * Ztree树结构实体类
 * 
 * @author ruoyi
 */
public class ZtreeNew implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 节点ID */
    private Long id;

    /** 节点父ID */
    private Long pId;

    /** 节点名称 */
    private String name;

    private String label;

    /** 节点标题 */
    private String title;


    /** 是否勾选 */
    private boolean checked = false;

    /** 是否展开 */
    private boolean open = false;

    /** 是否能勾选 */
    private boolean nocheck = false;

    /**
     * 等级
     */
    private Long level;

    /** 二级单位ID */
    private Long ejdwId;

    /** 二级单位名称 */
    private String ejdwName;

    /** 点位三级 */
    private Long dw_3_id;

    private String dw_3_name;

    /** 点位四级 */
    private Long dw_4_id;

    private String dw_4_name;

    /** 点位五级 */
    private Long dw_5_id;

    private String dw_5_name;

    public ZtreeNew() {
    }

    public ZtreeNew(Gzmx_scdw scdw){
        this.label = "scdw";
        this.id = scdw.getId();
        if(scdw.getJb()== 1L){
            this.pId = 0L ;
        }else {
            this.pId = scdw.getFdwdm();
        }
        this.level = scdw.getJb();
        this.name = scdw.getDwmc();
        this.ejdwId = scdw.getEjdwId();
        this.ejdwName = scdw.getEjdwName();
        this.dw_3_id = scdw.getDw_3_id();
        this.dw_3_name = scdw.getDw_3_name();
        this.dw_4_id = scdw.getDw_4_id();
        this.dw_4_name = scdw.getDw_4_name();
        this.dw_5_id = scdw.getDw_5_id();
        this.dw_5_name = scdw.getDw_5_name();
    }

    public ZtreeNew(TSceneCategory sceneCategory){
        this.label = "scene";
        this.id = sceneCategory.getSceneId();
//        if(sceneCategory.getLevel() == 1L){
//            this.pId = 0L ;
//        }else {
//            this.pId = sceneCategory.getParentId();
//      }
        this.pId = sceneCategory.getParentId();
        this.level = sceneCategory.getLevel();
        this.name = sceneCategory.getSceneName();
        this.ejdwId = sceneCategory.getEjdwId();
        this.ejdwName = sceneCategory.getEjdwName();
        this.dw_3_id = sceneCategory.getDw_3_id();
        this.dw_3_name = sceneCategory.getDw_3_name();
        this.dw_4_id = sceneCategory.getDw_4_id();
        this.dw_4_name = sceneCategory.getDw_4_name();
        this.dw_5_id = sceneCategory.getDw_5_id();
        this.dw_5_name = sceneCategory.getDw_5_name();
    }

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getpId()
    {
        return pId;
    }

    public void setpId(Long pId)
    {
        this.pId = pId;
    }

    public String getName()
    {
        return name;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public boolean isChecked()
    {
        return checked;
    }

    public void setChecked(boolean checked)
    {
        this.checked = checked;
    }

    public boolean isOpen()
    {
        return open;
    }

    public void setOpen(boolean open)
    {
        this.open = open;
    }

    public boolean isNocheck()
    {
        return nocheck;
    }

    public void setNocheck(boolean nocheck)
    {
        this.nocheck = nocheck;
    }

    public Long getLevel() {
        return level;
    }

    public void setLevel(Long level) {
        this.level = level;
    }

    public Long getEjdwId() {
        return ejdwId;
    }

    public void setEjdwId(Long ejdwId) {
        this.ejdwId = ejdwId;
    }

    public String getEjdwName() {
        return ejdwName;
    }

    public void setEjdwName(String ejdwName) {
        this.ejdwName = ejdwName;
    }

    public Long getDw_3_id() {
        return dw_3_id;
    }

    public void setDw_3_id(Long dw_3_id) {
        this.dw_3_id = dw_3_id;
    }

    public String getDw_3_name() {
        return dw_3_name;
    }

    public void setDw_3_name(String dw_3_name) {
        this.dw_3_name = dw_3_name;
    }

    public Long getDw_4_id() {
        return dw_4_id;
    }

    public void setDw_4_id(Long dw_4_id) {
        this.dw_4_id = dw_4_id;
    }

    public String getDw_4_name() {
        return dw_4_name;
    }

    public void setDw_4_name(String dw_4_name) {
        this.dw_4_name = dw_4_name;
    }

    public Long getDw_5_id() {
        return dw_5_id;
    }

    public void setDw_5_id(Long dw_5_id) {
        this.dw_5_id = dw_5_id;
    }

    public String getDw_5_name() {
        return dw_5_name;
    }

    public void setDw_5_name(String dw_5_name) {
        this.dw_5_name = dw_5_name;
    }
}
